home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Network Support Library
/
RoseWare - Network Support Library.iso
/
time
/
navyti.arc
/
NAVYTIME.DOC
< prev
next >
Wrap
Text File
|
1989-01-09
|
5KB
|
90 lines
NAVYTIME calls the Naval Observatory in Washington, DC for the
correct time, and sets your computer's time accordingly. NAVYTIME
sets your system clock, the real-time clock in an AT, and optionally
it can set the clock of a Novell file server if run from a workstation
signed on as the supervisor.
NAVYTIME was written by Zedak Corp of New York City, and may be used
and copied freely.
syntax: NAVYTIME [parmfilename] [/w]
or NAVYTIME ? or NAVYTIME /help for a help message
parmfilename is the name of a parameter file.
if a parmfile is not specified, NAVYTIME looks for one
called NAVYTIME.CFG in the current directory.
/w means write a default parameter file.
it is written to parmfilename or to NAVYTIME.CFG
if no parmfilename was specified.
The parameters file is an ASCII text file with one line
per parameter. Each line consists of a keyword followed
by a blank followed by a parameter. Keywords all start
with a period. The keywords are:
1) .DialString is a command string to cause the modem to
dial the Naval Observatory. The string can be whatever
it takes to make your modem do its thing. The default
string is suitable for a Hayes 2400 baud modem or
compatible. The following command sequences are recognized
by NAVYTIME when embedded in the dial string, and are handled
specially during dial command transmission:
\d quit if the modem Data Set Ready signal is not active
\c quit if the modem has not sent back any chars yet
\1 thru \9 delay n timer ticks (18ms each)
\n emit linefeed (hex 0A)
\r emit carriage return (hex 0D)
\b emit blank (trailing blanks are trimmed in dial string)
2) .HangUp a control string to cause the modem to hang up.
This is not really needed for a Hayes because the default dial
string will cause the Hayes to hang up when NAVYTIME drops the
Data Terminal Ready signal, but some compatibles don't have that
feature.
3) .ConnectMsgs a set of messages to be recognized as an indication
that the modem has connected. The messages are started, ended,
and delimited by slashes. For a Hayes or compatible, CONNECT is
the standard message, so /CONNECT/ is a good parameter.
3) .FailMsgs a set of messages to be recognized as an indication
that the modem has failed to connect. The messages are started,
ended, and delimited by slashes. For a Hayes or compatible,
/NO CARRIER/BUSY/NO DIALTONE/ERROR/ all indicate we are not
going to get through.
4) .CharDelay A number of ticks to delay between characters of
dial command string. Some modems cannot accept command strings
at full speed (like MicroCom), so CharDelay should be set to 1
for them. For a Hayes, 0 is fine.
5) .ComPort may be 1 or 2 for COM1 or COM2.
6) .TimeZone The number of hours to add to a Zulu time to
compute local time. For Eastern Standard Time, -5 is correct.
for Pacific Standard, -8 is correct.
7) .Daylight y if Daylight Savings is in effect.
8) SetServer y if the computer is a workstation on a Novell
Network and NAVYTIME should set the file server's time as
well. This feature requires that the workstation be signed
on with supervisor authority.
Default Parameters
.DialString \dATQ0V1S11=50S12=3&C1&D2L1 DT 1 202 653 0351\r\6
.HangUp \6+++\6ATH\r
.ConnectMsgs /CONNECT/
.FailMsgs /NO CARRIER/BUSY/NO DIALTONE/ERROR/
.CharDelay 0 1 = slow modem commands (microcom
.ComPort 1 Com 1 or Com 2 are supported
.TimeZone -5 Hours to add to Zulu for local
.Daylight n Daylight Savings time
.SetServer y y means set Novell Server clock
(requires supervisor privilege)